package com.goldcn.common;

/**
 * 码表
 * 
 * @author gaoqiang
 * 
 */
public class BaseCode {
 
	public static final String SUCCESS_CODE = "1";
	
	public static final String ERROR_CODE = "0";

	
	public final static String DEFAULT_PASSWORD="111111"; //初始化密码

	public final static String DEFAULT_ACCOUNT_ID="1";// 默认账套ID

	public final static int ENABLED  = 0; // 启用
	public final static int DISABLED  = 1;// 禁用
	public final static int DELETED  = 2;// 删除

	public final static int ERP = 5;// 外部接口代码（云管控基础分类）
	//public final static String URL_CLOUD = "http://192.168.3.57:9000";// 外部接口url（云管控）

	public final static int SUCCESS = 1; // 数据获取成功标识


	//定义一些常用错误信息，与前台配合使用
	public static final String ERROR_CODE100 = "100";  //无操作权限
	public static final String ERROR_CODE101 = "101";  //没有登入
	public static final String ERROR_CODE102 = "102";  //登入超时，请重新登入
	public static final String ERROR_CODE103 = "103";  //网络异常，请重试
	public static final String ERROR_CODE104 = "104";  //操作过频繁
	public static final String ERROR_CODE105 = "105";  //发送失败
	public static final String ERROR_CODE106 = "106";  //上传文件失败

	public static final int IS_WHOLESALE = 1;
	public static final int IS_RETAIL = 2;


	//redis key
	public final static String user_dataPres = "dataPres";//数据权限
	public final static String user_funPres = "funPres";//功能权限
	public final static String erp_allFuns = "erp_allFuns";//所有功能
	public final static String user_operatePres = "operatePres";//日志

	//对接秘钥
	public final static String secretKey = "1484566294091";



}